package org.locker.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.locker.common.mybatis.core.domain.BaseEntity;

import java.math.BigDecimal;

import java.io.Serial;

/**
 * 用户余额操作记录对象 lk_balance_record
 *
 * @author winnie
 * @date 2023-10-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("lk_balance_record")
public class BalanceRecord extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 余额记录ID
     */
    @TableId(value = "balance_record_id")
    private Long balanceRecordId;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 场地ID
     */
    private Long positionId;

    /**
     * 提现ID
     */
    private Long withdrawId;

    /**
     * 订单编号
     */
    private String orderNo;

    /**
     * 价格
     */
    private BigDecimal amount;

    /**
     * 状态：deposit 押金(+), withdraw 提现(-)
     */
    private String recordType;

    /**
     * 状态：success 成功,progress 进行中(会冻结余额) , backed 失败还原（还原->冻结余额）
     */
    private String status;

    /**
     * 备注
     */
    private String remark;


}
